﻿using FlyingEye.Exceptions;

namespace FlyingEye.Application.Exceptions
{
    public class DeviceConnectException : InvalidOperationException, IUserFriendlyException
    {
        public int Code { get; }

        public DeviceConnectException(int code) : base($"PLC 设备连接错误, Code = {code} ！")
        {
            Code = code;
        }
    }
}
